package com.zhongyouyun.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhongyouyun.admin.model.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyouyun.admin.pojo.RolePojo;

import java.util.List;
import java.util.Map;

/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 角色表服务类
 */

public interface RoleService extends IService<RoleModel> {

    IPage<RoleModel> selectPage(Page<RoleModel> userPage, QueryWrapper<RoleModel> queryWrapper);

    List<RoleModel> selectList(QueryWrapper<RoleModel> queryWrapper);

    List<MenuModel> findRoleMenus(RoleModel roleModel);

    Boolean saveRoleMenus(UserModel model, List<DictModel> list);

    List<RoleModel> findByUserId(Long id);

    List<Map<String, Object>> findRoles();

    IPage<RolePojo> selectPojoPage(Page page, QueryWrapper<RolePojo> queryWrapper);

    List<RoleModel> selectbyList(List<Long> longva);
}
